Skip to content

[test] Add assertion that constructor is a wrapper#90

Merged
tlively merged 1 commit intomainfrom
assert-constructor-wrapper
Jan 29, 2026
Merged

[test] Add assertion that constructor is a wrapper#90
tlively merged 1 commit intomainfrom
assert-constructor-wrapper

Conversation

@tlively
Copy link
Member

@tlively tlively commented Jan 29, 2026

Wasm functions configured as constructors by configureAll are wrapped
(as opposed to mutated in-place) to allow them to be called with new.
Add an assertion that the constructor that appears on the JS side is not
pointer-identical with the unwrapped Wasm function.

Wasm functions configured as constructors by configureAll are wrapped
(as opposed to mutated in-place) to allow them to be called with `new`.
Add an assertion that the constructor that appears on the JS side is not
pointer-identical with the unwrapped Wasm function.
@tlively tlively requested a review from rmahdav January 29, 2026 17:26
Copy link

@rmahdav rmahdav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Thomas!

@tlively tlively merged commit e9ad07b into main Jan 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants